﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<base href="<%=basePath%>" />
	    <title>solcoo 商户数据统计</title>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	    <meta http-equiv="pragma" content="no-cache" />
	    <meta http-equiv="cache-control" content="no-cache" />
	    <meta http-equiv="expires" content="0" />
	    <meta http-equiv="keywords" content="keyword1, keyword2, keyword3" />
	    <meta http-equiv="description" content="solcoo 商户数据统计" />
	    <!--  css -->
	    <link rel="stylesheet" href="css/jquery-ui.css" />
	    <link href="css/main.css" type="text/css" rel="stylesheet" />
	    <!-- js -->
	    <script src="js/jquery-1.9.1.js" charset="UTF-8"></script>
	    <script src="js/jquery-ui.js" charset="UTF-8"></script>
	    <script type="text/javascript">
	    	$(function() {
	        	$(".jquery_ui_date_style").datepicker({dateFormat:"yy-mm-dd"});
	        });
	    </script>
    </head>
    <body>
    	<c:if test="${empty sessionScope.user}">
			<jsp:forward page="/" />
		</c:if>
		<div id="header_style">
    		<div class="quit"><a href="login.jsp">退出系统</a></div>
        	<h1 id="logo"><img src="images/logo.png" alt="solcoo" /></h1>
    	</div>
    	<div id="main_content">
    		<div id="content_header">
	            <div class="block_box">
	                <h2 class="other_tab"><a href="queryVIP.jspDo?shanghuid=${shanghuid}">会员表</a></h2>
	                <h2 class="other_tab"><a href="queryOrder.jspDo?merchantId=${shanghuid}">对账表</a></h2>
	                <h2 class="curret_tab"><a href="queryData.jspDo?yonghum=${shanghuid}">数据统计</a></h2>
	                <cite class="right_info">(默认单位：元)</cite>
	            </div>
        	</div>
        	<div id="content">
            <div class="table_search_box">
                <div class="filter_box">
                    <div class="filter_header_info">
                        <div class="filter_h_b_l_row">
                        </div>
                        <div class="filter_h_r_row"></div>
                    </div>
                    <div class="filter_form_info"></div>
                </div>
                <div class="table_search_result">
                    <table class="tgy_ui_table" cellpadding="0" cellspacing="0" width="100%" align="center">
						<tr>
							<th></th>
							<th>01月</th>
							<th>02月</th>
							<th>03月</th>
							<th>04月</th>
							<th>05月</th>
							<th>06月</th>
							<th>07月</th>
							<th>08月</th>
							<th>09月</th>
							<th>10月</th>
							<th>11月</th>
							<th>12月</th>
						</tr>
						<tr class="tr1">
							<td class="label">成交量（实收款）</td>
							<c:forEach var="sskByShanghu" items="${ssksByShanghu}">
								<td><fmt:formatNumber value="${sskByShanghu}" pattern="0.0"/></td>
							</c:forEach>
						</tr>
						<tr class="tr0">
							<td class="label">会员总数量</td>
							<c:forEach var="vipCountByShanghu" items="${vipCountsByShanghu}">
								<td>${vipCountByShanghu}</td>
							</c:forEach>
						</tr>
						<tr class="tr1">
							<td class="label">交易笔数</td>
							<c:forEach var="businessCountByShanghu" items="${businessCountsByShanghu}">
								<td>${businessCountByShanghu}</td>
							</c:forEach>
						</tr>
						<tr class="tr0">
							<td class="label">发短信条数</td>
							<c:forEach var="messageCountByShanghu" items="${messageCountsByShanghu}">
								<td>${messageCountByShanghu}</td>
							</c:forEach>
						</tr>
						<tr class="tr1">
							<td class="label">新增会员数量</td>
							<c:forEach var="addVipByShanghu" items="${addVipsByShanghu}">
								<td>${addVipByShanghu}</td>
							</c:forEach>
						</tr>
                    </table>
                </div>
            </div>
    	</div>
    </body>
</html>